    package test4;

    import java.util.Scanner;

    public class Main {
        public static void main(String[] args){
            Scanner sc=new Scanner(System.in);
            BankAccount bank=new BankAccount(sc.nextInt());
            int e=sc.nextInt();
            int f=sc.nextInt();
            int x=bank.getBlance();
            if(x==0){
                System.out.println("输入的数据不能为负数");
                return;
            }
            int a=bank.withdraw(e);
            if(x==a){
                return;
            }
            int b=bank.deposit(f);
            System.out.println("账户的初始余额是:"+x);
            System.out.println("取款后，账户余额是:"+a);
            System.out.println("存款后，账户余额是:"+b);
        }
    }
